// TopMostDlg.h : header file
//

#pragma once
#include "afxwin.h"
#include "imgstatic.h"

#include "SearchResultDlg.h"
#include "TrackDlg.h"
#include <map>

// CTopMostDlg dialog
class CTopMostDlg : public CDialog
{
    typedef std::map<int, CString> INT_CSTR_MAP;
// Construction
public:
	CTopMostDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_TOPMOST_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg LRESULT OnHotKey(WPARAM wParam, LPARAM lParam);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnTimer(UINT_PTR nIDEvent);
    afx_msg BOOL OnNcActivate(BOOL bActive);
    afx_msg void OnBnClickedMousetrack();

	LRESULT OnChangeEditValue(WPARAM wParam, LPARAM lParam);
	LRESULT OnSearchComplete(WPARAM wParam, LPARAM lParam);

	DECLARE_MESSAGE_MAP()

protected:
    //tool fuctions
    void ListWndProperties();

public:
	

protected:
	CListBox				m_listlogs;
	CEdit					m_HwndEdit;
	HWND					m_CurWnd;
	
    CImgStatic			    m_SearchHelper;
	CSearchResultDlg        m_SearchResultDlg;

    CTrackDlg               m_TrackDlg;

    CButton                 m_MTBtn;
	
    BOOL					m_bHasListner;
    BOOL                    m_bMouseTrackListner;
	
    INT_CSTR_MAP  m_mapStyles;
    INT_CSTR_MAP  m_mapExStyles;
    
};
